CC = gcc

SRC = $(wildcard *.c)
OBJ = $(patsubst %.c, %.o, $(SRC))

CFLAGS = -Wall
TARGET = liberr.a

ALL:$(OBJ)
	@ar rcs $(TARGET) $(OBJ)

%.o:%.c
	@$(CC) -c $< -o $@ $(CFLAGS)

.PHONY:clean
clean:
	@rm $(OBJ) $(TARGET)
